home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: addmemhandler.c,v 1.4 1996/08/13 13:55:56 digulla Exp $
- $Log: addmemhandler.c,v $
- Revision 1.4 1996/08/13 13:55:56 digulla
- Replaced __AROS_LA by __AROS_LHA
- Replaced some __AROS_LH*I by __AROS_LH*
- Sorted and added includes
-
- Revision 1.3 1996/08/01 17:41:02 digulla
- Added standard header for all files
-
- Desc:
- Lang:
- */
- /*****************************************************************************
-
- NAME */
- #include <exec/execbase.h>
- #include <clib/exec_protos.h>
-
- __AROS_LH1(void, AddMemHandler,
-
- /* SYNOPSIS */
- __AROS_LHA(struct Interrupt *, memHandler, A1),
-
- /* LOCATION */
- struct ExecBase *, SysBase, 129, Exec)
-
- /* FUNCTION
- Add some function to be called if the system is low on memory.
-
- INPUTS
- memHandler - An Interrupt structure to add to the low memory
- handler list.
-
- RESULT
-
- NOTES
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
-
- INTERNALS
-
- HISTORY
- 8-10-95 created by m. fleischer
-
- ******************************************************************************/
- {
- __AROS_FUNC_INIT
- /* Protect the low memory handler list */
- Forbid();
- /* Nothing spectacular: Just add the new node */
- Enqueue((struct List *)&SysBase->ex_MemHandlers,&memHandler->is_Node);
- Permit();
- __AROS_FUNC_EXIT
- } /* AddMemHandler */
-
-